function addZero (value) {
  return value < 10 ? '0' + value : value;
}

export function getIconDate(type) {
  let date = new Date();
  switch (type) {
    case 'day':
      return addZero(date.getDate()).toString();
    case 'month':
      return addZero(date.getMonth() + 1).toString();
    case 'year':
      return date.getFullYear().toString().substring(2);
  }
}